home *** CD-ROM | disk | FTP | other *** search
- class §#25§ extends MovieClip
- {
- var §#231§ = 5000;
- var §#232§ = 2000;
- var §#282§ = true;
- var §#279§ = 2.5;
- var §#280§ = 1.5;
- var §#165§ = 1;
- var §#183§ = 15;
- var §#162§ = 50;
- var §#315§ = 1;
- var §#303§ = 30;
- var §#348§ = 15;
- var §#321§ = 40;
- var §#304§ = 50;
- var §#298§ = 64;
- var §#7§ = 1;
- var §#36§ = 0;
- var §#258§ = false;
- static var §#69§ = false;
- var §#86§ = 0;
- var §#75§ = false;
- var §#198§ = false;
- var §#246§ = 1;
- function §#25§()
- {
- super();
- if(_root.bounds != undefined)
- {
- this["#279"] = _root.bounds._width / 250;
- this["#280"] = _root.bounds._height / 250;
- }
- }
- function §#2§()
- {
- return "ShotPoint: ";
- }
- function getRandom(min, max)
- {
- return Math.round(Math.random() * (max - min)) + min;
- }
- function §#8§(§#97§)
- {
- if(§#97§ == this["#7"] && this["#258"] == this["#75"])
- {
- return undefined;
- }
- var _loc2_ = this._currentframe;
- if(§#97§ == this["#165"])
- {
- if(this["#75"])
- {
- if(eval("#25")["#69"])
- {
- _loc2_ = this["#298"];
- }
- else
- {
- _loc2_ = this["#303"];
- }
- }
- else if(eval("#25")["#69"])
- {
- _loc2_ = this["#304"];
- }
- else
- {
- _loc2_ = this["#315"];
- }
- }
- else if(§#97§ == this["#183"])
- {
- if(this["#75"])
- {
- _loc2_ = this["#321"];
- }
- else
- {
- _loc2_ = this["#348"];
- }
- }
- if(this["#282"])
- {
- this.gotoAndStop(_loc2_);
- }
- else
- {
- this.gotoAndPlay(_loc2_);
- }
- this["#7"] = §#97§;
- this["#258"] = this["#75"];
- }
- function §#436§(x, y)
- {
- if(this._x <= x + 50 && this._x >= x - 50 && this._y <= y + 30 && this._y >= x - 30)
- {
- return true;
- }
- return false;
- }
- static function §#163§()
- {
- return eval("#25")["#69"];
- }
- function §#248§()
- {
- var _loc3_ = _root["#330"].hitTest(this._x,this._y,true);
- return _loc3_;
- }
- function §#147§()
- {
- _root["#4"]["#102"]["#337"]();
- var _loc4_ = this.getRandom(-1,1);
- var _loc3_ = this.getRandom(0,1);
- if(_loc3_ == 0)
- {
- _loc3_ = -1;
- }
- if(_loc4_ == 0)
- {
- _loc3_ *= 1.5;
- }
- var _loc5_ = 12 * eval("#5").scale;
- if(_loc3_ != 0)
- {
- var _loc7_ = _loc5_ * this["#279"] * (_root["#4"].level + 2) * _loc3_;
- this._x += _loc7_;
- if(!Bounds["#177"](this))
- {
- this._x = Bounds["#118"](this._x - _loc7_ * 2,this._y);
- }
- }
- if(_loc4_ != 0)
- {
- var _loc6_ = _loc5_ * this["#280"] * (_root["#4"].level + 2) * _loc4_;
- this._y += _loc6_;
- if(!Bounds["#177"](this))
- {
- this._y = Bounds["#119"](this._x,this._y - _loc6_ * 2);
- }
- }
- Bounds["#216"](this);
- _root["#49"]._x = this._x;
- _root["#49"]._y = this._x;
- this["#149"] = this._x;
- this["#100"] = this._y;
- var _loc9_ = _root.center._x + eval("#5").scale * eval("#14").getRandom(-100,100);
- var _loc8_ = _root.center._y + eval("#5").scale * eval("#14").getRandom(-50,50);
- this["#256"] = eval("#14").getAngle(this._x,this._y,_loc9_,_loc8_);
- this["#305"] = random(2) != 0 ? 1 : -1;
- this.speed = eval("#14").getRandom(25,75) * eval("#5").scale * (_root["#4"].level + 2) / 3;
- this["#16"] = 0;
- this["#36"] = getTimer();
- this["#75"] = false;
- if(_root["#410"]["#442"]())
- {
- eval("#25")["#69"] = false;
- }
- else
- {
- eval("#25")["#69"] = this.getRandom(1,100) < _root["#4"].level * 10;
- }
- if(this["#86"] > 2)
- {
- eval("#25")["#69"] = false;
- }
- if(eval("#25")["#69"])
- {
- this["#36"] -= this["#232"];
- if(_root["#4"]["#44"] != 5)
- {
- _root["#18"]["#8"](_root["#18"]["#162"]);
- }
- _root["#49"]._x = this._x;
- _root["#49"]._y = this._y;
- _root["#49"]._visible = true;
- this["#86"] = this["#86"] + 1;
- }
- else
- {
- _root["#49"]._visible = false;
- this["#86"] = 0;
- }
- this["#8"](this["#165"]);
- }
- function §#203§()
- {
- return this["#7"] == this["#183"];
- }
- function §#376§()
- {
- this["#75"] = true;
- this["#8"](this["#7"]);
- }
- function setScale(level)
- {
- var _loc3_ = undefined;
- if(level == 0)
- {
- _loc3_ = 100;
- }
- else if(level == 1)
- {
- _loc3_ = 87.5;
- }
- else if(level == 2)
- {
- _loc3_ = 75;
- }
- else if(level == 3)
- {
- _loc3_ = 62.5;
- }
- else
- {
- _loc3_ = 50;
- }
- this._xscale = _loc3_;
- this._yscale = _loc3_;
- _root["#49"]._xscale = _loc3_;
- _root["#49"]._yscale = _loc3_;
- }
- function onEnterFrame()
- {
- var _loc3_ = getTimer() - this["#36"];
- if(this["#75"])
- {
- if(_loc3_ > this["#231"] && !_root["#4"]["#9"]["#47"] && !_root["#4"]["#9"]["#57"])
- {
- eval("#1").getInstance()["#20"](eval("#1")["#196"]);
- this["#147"]();
- return undefined;
- }
- }
- else if(_loc3_ > this["#232"])
- {
- this["#376"]();
- }
- if(this["#282"] && !(_root["#4"]["#9"]["#47"] && this["#203"]()))
- {
- this["#387"]();
- }
- }
- function §#387§()
- {
- if(!this["#198"])
- {
- this["#16"] += 74 / this["#231"];
- var _loc3_ = Math.cos(this["#16"] * 3.141592653589793 / 2);
- _loc3_ *= 6.283185307179586;
- _loc3_ *= this["#305"];
- _loc3_ /= 10;
- var _loc5_ = Math.cos(this["#256"] + _loc3_);
- var _loc4_ = Math.sin(this["#256"] + _loc3_);
- this._x = this["#149"] + this["#16"] * this.speed * _loc5_;
- this._y = this["#100"] + this["#16"] * this.speed * _loc4_;
- }
- Bounds["#216"](this);
- _root["#49"]._x = this._x;
- _root["#49"]._y = this._y;
- return undefined;
- }
- function §#443§(time)
- {
- eval("#0").log("freezing for " + time + " seconds");
- clearInterval(this["#266"]);
- this["#266"] = setInterval(this,"#372",time * 1000);
- this["#198"] = true;
- }
- function §#372§()
- {
- clearInterval(this["#266"]);
- this["#198"] = false;
- }
- }
-